using Fluent.IO;
using TripleA.Core.Interfaces.Entities;

namespace TripleA.Core.Extensions.FileSystem
{
    public class CloneFolderContentStep<T> : StepBase<T>
        where T: Context
    {
        public string SourceFolder { get; set; }
        public string TargetFolder { get; set; }

        public CloneFolderContentStep(string sourceFolder, string targetFolder)
        {
            SourceFolder = sourceFolder;
            TargetFolder = targetFolder;
        }

        public override void Execute(T context)
        {
            Path.Get(SourceFolder).Copy(TargetFolder);
        }
    }
}